﻿// ==========================================================
// File: XingNet.Web.Model.Class1.cs
// Created: 03.03.2015
// Created By: Tim cadenbach
// 
// Copyright (C) 2015 Tim Cadenbach
// License: Apache License 2.0
// ==========================================================

using Newtonsoft.Json;

namespace XingNet.Web.Model.v1_users
{
  public class Reason
  {
    [JsonProperty("text")]
    public string Text { get; set; }
  }

  public class PhotoUrls
  {
    [JsonProperty("large")]
    public string Large { get; set; }

    [JsonProperty("mini_thumb")]
    public string MiniThumb { get; set; }

    [JsonProperty("thumb")]
    public string Thumb { get; set; }

    [JsonProperty("medium_thumb")]
    public string MediumThumb { get; set; }

    [JsonProperty("maxi_thumb")]
    public string MaxiThumb { get; set; }
  }

  public class Visit
  {
    [JsonProperty("company_name")]
    public string CompanyName { get; set; }

    [JsonProperty("job_title")]
    public string JobTitle { get; set; }

    [JsonProperty("visited_at_encrypted")]
    public string VisitedAtEncrypted { get; set; }

    [JsonProperty("reason")]
    public Reason Reason { get; set; }

    [JsonProperty("user_id")]
    public string UserId { get; set; }

    [JsonProperty("photo_urls")]
    public PhotoUrls PhotoUrls { get; set; }

    [JsonProperty("display_name")]
    public string DisplayName { get; set; }

    [JsonProperty("visited_at")]
    public string VisitedAt { get; set; }

    [JsonProperty("visit_count")]
    public int? VisitCount { get; set; }

    [JsonProperty("gender")]
    public string Gender { get; set; }
  }

  public class VisitsResponse
  {
    [JsonProperty("visits")]
    public Visit[] Visits { get; set; }
  }
}